﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Simple.ViewModel
{
    public class SetUpDto
    {
        [Required(ErrorMessage = "请输入用户名")]
        public string LoginName { get; set; }
        [Required(ErrorMessage = "请输入密码")]
        [StringLength(16, MinimumLength = 6, ErrorMessage = "密码长度6-16位")]
        public string PassWord { get; set; }
        [Compare("PassWord", ErrorMessage = "确认密码与密码不一致")]
        public string ConfirmPassWord { get; set; }
    }
}
